Julia Styled Polinomial Manipulation

Polinomial Declaration


In [62]:
workspace()

function f(x)
    return 4x^3+3x^2+2x+1
end

g(x) = 5x^2 + 3


Out[62]:
g (generic function with 1 method)

Polinomial Sum


In [63]:
a = g(1)+f(1)


Out[63]:
18

Polinomial Substraction


In [64]:
b = g(1)-f(1)


Out[64]:
-2

Polinomial Multiplication


In [65]:
c = g(1)*f(1)


Out[65]:
80

Polinomial Composition


In [66]:
d = f(g(1))


Out[66]:
2257

In [ ]: